package HelloWorld;
import java.util.Scanner;


public class HelloWorldPerson extends HelloWorld {

	@Override
	public String getMessage() 
	{
		System.out.println("Enter your name: ");
		
		String userName;
		Scanner scanIn = new Scanner(System.in);
		userName = scanIn.nextLine();
		scanIn.close();
				
		return userName + " " + super.getMessage();
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		HelloWorldPerson helloWorldPerson = new HelloWorldPerson();
		String str = helloWorldPerson.getMessage();
		System.out.println(str);

	}

}
